package com.huawei.springboot2023.business.goods.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author ZhouChengYang
 * @since 2023-04-07
 */
@Getter
@Setter
@ApiModel(value = "Goods对象", description = "")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("对台账的唯一标识")
    @TableId(value = "goodsId", type = IdType.NONE)
    private String goodsId;

    @ApiModelProperty("物资名称")
    private String goodsName;

    @ApiModelProperty("对物资分类的唯一标识")
    private String typeId;

    @ApiModelProperty("保鲜仓Id")
    private String whId;

    @ApiModelProperty("存入人")
    private String depositPersonName;

    @ApiModelProperty("物资数量")
    private Double goodsNum;

    @ApiModelProperty("单位")
    private String unit;

    @ApiModelProperty("自定义属性Id")
    private String customAttrId;

    @ApiModelProperty("存入时间")
    private Date addTime;

    @ApiModelProperty("存储时长，单位：天")
    private Integer storageTime;

    @ApiModelProperty(" 上次修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(" 逻辑删除标识，0代表未被删除，1代表被删除")
    @TableLogic
    private Integer isDelete;

    @ApiModelProperty("物资占保鲜仓容积比例")
    private Double percentage;


}
